package com.dyl.mymodule.app;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
/**
 * Created by tukela on 2015/11/26.
 */
public class SplashActivity extends Activity {


    private int intentType;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initView();
        startMain();
    }

    /***
     * 初始化一些系统参数
     */
    public void initView() {
       if (true)
        intentType=3;

    }




    public void startMain() {
        switch (intentType)
        {
            case 0:
                startActivity(new Intent(this,MainActivity.class));
                break;
            case 1:
                startActivity(new Intent(this,Main2Activity.class));
                break;
            case 2:
                startActivity(new Intent(this,CollapsingToolbarLayoutActivity.class));
                break;
            case 3:
                startActivity(new Intent(this,Main3Activity.class));
                break;


        }
        finish();


    }
}
